package utils

// InsertString 向字符串中插入字符串
func InsertString(src string, index int, target string) string {
	strRune := []rune(src)
	strRune2 := []rune(src)
	tem1 := strRune[:index]
	tem2 := strRune2[index:]
	spacerune := []rune(target)
	result := append(tem1, spacerune...)
	strRune = append(result, tem2...)
	return string(strRune)
}
